﻿<%@ Page Language="C#" %>

<%@ Import Namespace="RssEasy.Core" %>
<%@ Import Namespace="RssEasy.Dal" %>
<%@ Import Namespace="LocalDAL" %>
<!DOCTYPE html>
<html>
<head>
    <%
        LocalSeoHelper seo = new LocalSeoHelper();
        seo.lanmubankuai(5);

        ArticleList entity = new ArticleList();
        entity.request();
        entity.select().where("id=@id", entity["id"]).get_first_rows();
        string id = entity["id"];
    %>
    <meta charset="utf-8" />
    <title><%  Response.Write(entity["title"]); %> - <% Response.Write(seo.title); %></title>
    <meta name="keywords" content="<% Response.Write(entity["title"]); %>,<% Response.Write(entity["keywords"]); %>" />
    <meta name="description" content="<% Response.Write(entity["description"]); %>" />
    <link href="/img/ios.png" rel="shortcut icon">
    <link rel="stylesheet" type="text/css" href="/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/css/index.css" />
    <link href="/css/index2.css" rel="stylesheet" />
</head>
<body class="info_body" id="info">
    <!--#include virtual="/inc/header2.html"  -->
    <div class="he_banner">
        <img src="/img/z_banner.jpg" />
    </div>
    <div class="z_content">
        <div class="w1000">
            <div class="inf_tiny"><a href="/index.html">首页</a> &gt; <a href="/index/news.html">资讯动态</a> &gt; 正文</div>
            <div class="clear z_con">
                <div class="in_con fl">
                    <div class="in_c_title">
                        <h1><% Response.Write(entity["title"]); %></h1>
                        <p riqidata="<% Response.Write(entity["shijian"]); %>"></p>
                        <div sharehelper="" class="sharehelper martop10"></div>
                    </div>
                    <div class="in_txt">
                        <% Response.Write(entity["matter"]); %>
                        <!--#include virtual="/inc/qrcode.html"  -->
                    </div>
                </div>
                <div class="fr z_r_text">
                    <div class="fr z_r_text">
                        <dl class="z_r_sunxu">
                            <dt>最新文章</dt>
                            <%
                                ArticleList list = new ArticleList();
                                list.select("id,title").get_page_desc("id");
                                while (list.for_in_rows())
                                {
                            %>
                            <dd><span><% Response.Write(list.for_in_idx); %></span><a href="/html/news/<% Response.Write(list["id"]); %>.html" target="<% Response.Write(list["title"]); %>"><% Response.Write(list["title"]); %></a></dd>
                            <%
                                }
                            %>
                        </dl>
                        <dl>
                            <dt>推荐文章</dt>
                            <%
                                ArticleChooseListView chooselist = new ArticleChooseListView();
                                chooselist.select("id,title").query();
                                while (chooselist.for_in_rows())
                                {
                            %>
                            <dd><a href="/html/news/<% Response.Write(chooselist["id"]); %>.html" target="<% Response.Write(chooselist["title"]); %>"><% Response.Write(chooselist["title"]); %></a></dd>
                            <%
                                }
                            %>
                        </dl>
                    </div>
                </div>
            </div>
            <div class="in_rate">
                <%
                    if (entity.select("id,title").where("state=1").get_prev_rows(id))
                    {
                        Response.Write("<a href='/html/news/" + entity["id"] + ".html' class='fl'>上一篇：" + entity["title"] + "</a>");
                    }
                %>
                <%
                    if (entity.select("id,title").where("state=1").get_next_rows(id))
                    {
                        Response.Write("<a href='/html/news/" + entity["id"] + ".html' class='fr'>下一篇：" + entity["title"] + "</a>");
                    }
                %>
            </div>
        </div>
    </div>
    <!--#include virtual="/inc/footer2.html"  -->
    <script src="/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/rsseasy.min.js"></script>
    <script src="/js/sharehelper.min.js"></script>
    <script src="/js/header.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/index2.js"></script>
</body>
</html>
